const errCode = {
  CLIENT_ERR_CODE: 400,
  SERVER_ERR_CODE: 500,
  AUTH_ERR_CODE: 401,
};
const errMsg = {
  CLIENT_ERR_MSG: '客户端错误',
  SERVER_ERR_MSG: '服务的错误',
  UNAUTH_ERR_MSG: '未授权',
  INVALID_AUTH_ERR_MSG: 'token失效',
  USER_ALREADY_EXISTS: '用户已存在',
  USER_NOT_EXISTS: '用户不存在',
  USER_PASSWORD_ERR: '用户名或密码错误',
};
module.exports = {
  ...errCode,
  ...errMsg,

  WHITE_LIST: [
    { path: '/user', method: 'POST' },
    { path: '/user/login', method: 'POST' },
  ],
};
